package logincheck;

public class LoginCheck {
    private String name;
    private String password;
    public LoginCheck(String name,String password) {
    	this.name=name;
    	this.password=password;
    }
    public boolean validate() {
    	if("admin".equals(name)&&"123456".equals(password)) {
    		return true;
    	}
    	else {
    		return false;
    	}
    }
}
